<%-- 
    Document   : AllActivity
    Created on : 2020-5-17, 11:40:02
    Author     : 19645
--%>
<%@page import="com.qdu.entity.Activity"%>
<%@page import="java.util.List"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>管理活动</title>

        <link href="css/bootstrap.min.css" rel="stylesheet" />
        <link href="css/flexslider.css" rel="stylesheet" />
        <link href="css/style.css" rel="stylesheet" />
        <link href="css/style_1.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/font-awesome.min.css">

        <link href="css/bootstrap.min.js" rel="stylesheet" />
        <script src="js/jquery.min.js"></script>

        <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
        <link href='http://fonts.useso.com/css?family=Source+Sans+Pro:200,300,400,600,700,900' rel='stylesheet' type='text/css'>
    </head>

    <body>
        <div class="header">
            <div class="container">
                <a class="navbar-brand" href="index"><i class="fa fa-home"></i>Home</a>

                <div class="text-center">
                    <!--搜索页面-->
                    <form action="manageGnms" class="form-inline">
                        <input type="text" id="input_wd" name="keyword" class="form-control keyword_text" placeholder="输入活动名称">
                        <button type="submit" class="btn banner_btn keyword_text1">搜索</button>
                    </form>

                </div>

                <div class="menu"> <a class="toggleMenu" href="#"><img src="images/nav_icon.png" alt="" /> </a>
                    <ul class="nav" id="nav">
                        <li class=""><a href="salfm">日志</a></li>
                        <li><a href="allActivity">活动</a></li>
                        <li><a href="profile">个人页面</a></li>
                        <li><a href="wrmps">管理员登录</a></li>

                    </ul>
                    <script type="text/javascript" src="js/responsive-nav.js"></script> 
                </div>
            </div>
        </div>


        

        <%
//            可以直接对allActivity_list进行操作，不需要放进去再拿出来
            List<Activity> list=(List<Activity>)request.getAttribute("allActivity_list");
            pageContext.setAttribute("list",list);
        %>
        
        
        <div class="container" style="width: 70%">
            <div style="text-align:right; margin: 5px;">
            <a href="AddActivity.jsp" class="btn btn-info active" role="button">+添加活动</a>
            <br>
            </div>
            <div class="row">
                <c:forEach items="${pageScope.list}" var="all">
                <div class="footer_bottom"></div>
                <img class="AllActivityimage" src="images/${all.acover}" alt="图片找不到" /> 
                <h2><a href="gmis?activityId=${all.activityId}" style="text-decoration: none;">${all.aname}</a>
                
                <a href="javascript:if(confirm('确实要删除此活动吗?'))location='DeleteActi?activityId=${all.activityId}'"
                    class="btn btn-danger managerActi active" role="button">
                    删除
                </a>
                <a href="EditActivity.jsp?activityId=${all.activityId}" class="btn btn-info managerActi active" role="button">
                    编辑
                </a></h2>
                <p></p>
                <br>
                <p>
                    概述：${all.atype}<br>
                    要求：需要${all.anumber}名志愿者，等级--${all.arank}<br>
                    时间：于${all.astartTime}到达，结束时间${all.aendTime}<br>
                    招募进度：${all.astatus}
                </p>
                </c:forEach>
            </div>
        </div>
        <br>
        <div class="footer">
            <div class="footer_bottom">
                <div class="follow-us"> <a class="fa fa-facebook social-icon" href="#"></a> <a class="fa fa-twitter social-icon" href="#"></a> <a class="fa fa-linkedin social-icon" href="#"></a> <a class="fa fa-google-plus social-icon" href="#"></a> </div>
                <div class="copy">
                    <p>制作人@软件外包BD03班平平无奇天才队 <a href="#" target="_blank" title="联系我们">联系我们</a> 
                </div>
            </div>
        </div>
    </body>
</html>

